package org.ruanjj.multithread;


//生产者
public class Procuctor implements Runnable{
    private Clerk clerk;

    public Procuctor(Clerk clerk){
        this.clerk = clerk;
    }


    @Override
    public void run() {
        while(true){
            clerk.add();
            System.out.println(Thread.currentThread().getName()+"进行生产:"+clerk.goods);
        }
    }
}
